﻿using System.Windows.Media.Media3D;

namespace Wen.UI.NavigationElements
{
    internal class CameraViewModel
    {
        private ProjectionCamera _camera;

        private readonly CameraDirectionViewModel _directionViewModel;
        public CameraDirectionViewModel CameraDirectionViewModel {
            get { return _directionViewModel; }
        }

        private readonly CameraPositionViewModel _positionViewModel;
        public CameraPositionViewModel CameraPositionViewModel {
            get { return _positionViewModel; }
        }

        private readonly CameraRotationViewModel _rotationViewModel;
        public CameraRotationViewModel CameraRotationViewModel {
            get { return _rotationViewModel; }
        }

        internal CameraViewModel(ProjectionCamera camera) {
            _camera = camera;
            _directionViewModel = new CameraDirectionViewModel(camera);
            _positionViewModel = new CameraPositionViewModel(camera);
            _rotationViewModel = new CameraRotationViewModel(camera);
        }
    }
}
